package com.adam.blog.service;

import com.adam.blog.dao.pojo.SysUser;
import com.adam.blog.vo.Result;
import com.adam.blog.vo.UserVo;

public interface SysUserService {
    public SysUser findUserById(Long id);

    public SysUser findUser(String account, String password);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    public Result findUserByToken(String token);

    public void save(SysUser sysUser);

    public SysUser findUserByAccount(String account);

    public UserVo findUserVoById(Long authorId);
}
